import time
scale=10
start=time.perf_counter()
for i in range(scale+1):
    a="*" * i
    b="." * (scale-1)
    c=(i/scale)*100
    dur=time.perf_counter()-start
    print("{:^3.0f}%[{}->{}]{:2f}s".format(c,a,b,dur),end='')
    time.sleep(0.3)
print("------执行开始------")
